package com.platform.dao;

import com.platform.entity.CashOutEntity;
import com.platform.entity.excel.CashOutExcel;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 提现申请表Dao
 *
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2019-02-17 10:44:13
 */
public interface CashOutDao extends BaseDao<CashOutEntity> {

    List<CashOutExcel> queryListExcel(@Param("name") String name, @Param("phone")String phone, @Param("cardNo")String cardNo, @Param("status")Integer status,
                                      @Param("start")Integer start, @Param("size")Integer size);

    /**
     * 审核完成
     * @param param
     * @return
     */
    boolean success(Map<String,Object> param);

    /**
     * 修改提现状态
     * @param param
     * @return
     */
    Integer updateCashOutStatus(Map<String,Object> param);

    /**
     * 查询完成提现数据
     * @param uid
     * @return
     */
    Map<String,Object> queryCashOutMap(@Param("uid")Integer uid);

}
